﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="SchoolRoles.Register" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <h3>Create user ...</h3>
    <label>UserName:<asp:TextBox ID="TextBoxUserName" runat="server" /></label>
    <br />
    <label>Password:<asp:TextBox ID="TextBoxPassword" TextMode="Password" runat="server" /></label>
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" ControlToValidate="TextBoxPassword"
        Text="*" ForeColor="Red" ErrorMessage="Password cannot be empty"></asp:RequiredFieldValidator>    
    <br />
    <label>RepeatPassword:<asp:TextBox ID="TextBoxRepeatPassword" TextMode="Password" runat="server" /></label>
    <asp:CompareValidator ID="CompareValidatorPassword" runat="server" ErrorMessage="Passwords are not the same"
        ControlToCompare="TextBoxRepeatPassword" ControlToValidate="TextBoxPassword"
        Text="*" ForeColor="Red">
    </asp:CompareValidator>
    <br />
    <asp:Button ID="ButtonRegister" Text="Register" runat="server" OnClick="ButtonRegister_Click" />
    <br />
    <asp:ValidationSummary  ID="ValidationSummaryPassword" runat="server" ForeColor="Red" />
</asp:Content>
